-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for isLegalPrefix change #22241
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will hopefully fix more issues. I particularly like how the OpaqueInlineProxy was factored out into its own abstraction.
Except for one comment LGTM
@@ -768,6 +790,7 @@ class Inliner(val call: tpd.Tree)(using Context): | |||
override def typedSelect(tree: untpd.Select, pt: Type)(using Context): Tree = { | |||
val locked = ctx.typerState.ownedVars | |||
val qual1 = typed(tree.qualifier, shallowSelectionProto(tree.name, pt, this, tree.nameSpan)) | |||
selectionType(tree, qual1) // side-effect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to be more specific what side effect (error messages?, anything else?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fixes the denotation of the hash-consed TermRef. So in Featureful[?]#toFeatures
, selectionType
will skolemize the prefix, find the denotation, and then set that denotation for the TermRef(Featureful[?], symbol toFeatures)
.
This should get in before the cutoff. |
Is there anything left to do with this changes? Would be great if we could confirm the regressions are fixed before the cutoff |
It was just an open question. We can merge and get an answer later. |
Fixes #22062
Fixes #22068
Fixes #22070